<include file="Public:header"/>
<script src="__ADMIN__/js/jquery-1.4.2.min.js"></script>
<div class="aright">
<div class="arz" style="float: left;margin: 0px 20px 20px 30px;"><a href="{:U('banner/index')}">
<i class="layui-icon">&#xe608;</i>添加幻灯片</a></div>

<form method="post" class="aform cl" action="{:U('banner/deletes')}">
<table width="100%">
      <tr>
	    <th width="5%" align="center"><input type="checkbox" name="checkbox" id="selall" /></th>
		<th width="5%" align="center">编号</th>
        <th width="25%" align="center">幻灯片标题</th>
        <th width="9%" align="center">链接地址</th>
		<th width="10%" align="center">缩略图</th>      
		
        <th width="9%" align="center">基本操作</th>
      </tr>
      <volist name="list" id="vo">
	  <tr>
	    <td align="center"><input type="checkbox" class="selall" name="deletes[]" value="{$vo.id}" /></td>
		<td align="center">{$i}</td>
        <td align="center">{$vo.atitle}</td> 
        <td align="center">
        <if condition="$vo['alink'] eq ''">
                            暂无
         <else/>
         {$vo.alink}
         </if>
        </td>       
		<td align="center">		
        <img src="__ROOT__/Uploads{$vo.apic}" height="30">      
		</td>	
        <td align="center"><a href="{:U('banner/edit',array('id'=>$vo['id']))}">修改</a> | <a href="{:U('banner/delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除吗？');">删除</a>
        </td>
      </tr>
      </volist>
 </table>
<div class="layui-form-item">
    <div style="margin-top: 20px;">
	  <button class="layui-btn" onclick="return confirm('您确定要删除吗？');" type="submit">删除选中</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
</div>
 </form>
 <div class="pages">
 {$page}
 </div>
</div>
</div>
<script>
$("#selall").click(function(){
    if($(this).attr("checked")){
		$(".selall").attr("checked","checked");
	}else{
		$(".selall").removeAttr("checked");
	}

})
</script>
</body>
</html>